package com.zzyl.nursing.job;

import com.zzyl.nursing.mapper.ContractMapper;
import com.zzyl.nursing.service.IContractService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Slf4j
@Component("updateContractStatusJob")
public class UpdateContractStatusJob {

    @Resource
    private IContractService contractService;
    public void updateContractStatus(){
        log.info("更新合同状态");

        contractService.updateContractStatus();
        log.info("更新合同状态完成");
    }

}
